package com.shuiyun.jtt.utils.codec;

import io.netty.buffer.ByteBuf;
import lombok.Data;

/**
 * @author shuiyun
 * @description 输出数据
 * @date 2022-04-16 17:04
 */
@Data
public class OutputData {

    private FieldValue fieldValue;

    private ByteBuf buf;

    private Class<?> clazz;

    public OutputData(FieldValue fieldValue, ByteBuf buf) {
        this.fieldValue = fieldValue;
        this.buf = buf;
    }

    public OutputData(FieldValue fieldValue, ByteBuf buf, Class<?> clazz) {
        this.fieldValue = fieldValue;
        this.buf = buf;
        this.clazz = clazz;
    }
}
